/* style.css */
/* --- Подключение локального шрифта Inter --- */

/* Обычное начертание (Regular) - weight 400 */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Среднее начертание (Medium) - weight 500 */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/* Жирное начертание (Bold) - weight 700 */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* --- Использование шрифта в проекте --- */
body {
  /* Теперь браузер будет использовать локальный шрифт */
  font-family: 'Inter', sans-serif;
}

.title {
  font-weight: 700; /* Будет использован Inter-Bold.ttf */
}

.text {
  font-weight: 400; /* Будет использован Inter-Regular.ttf */
}

/* Стили для переключателя темы */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Ширина переключателя */
    height: 28px; /* Высота переключателя */
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px; /* Размер кружка */
    width: 20px;  /* Размер кружка */
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #4f46e5; /* Цвет активного переключателя (indigo) */
}

input:focus + .slider {
    box-shadow: 0 0 1px #4f46e5;
}

input:checked + .slider:before {
    -webkit-transform: translateX(22px); /* Сдвиг кружка */
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

/* Иконки внутри переключателя */
.slider .sun-icon, .slider .moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Чтобы иконки не мешали клику */
}

.slider .sun-icon {
    left: 6px;
    stroke: #f59e0b; /* amber-500 для лучшего контраста */
}

.slider .moon-icon {
    right: 6px;
    stroke: #60a5fa; /* blue-400 для лучшего контраста */
}

/* Показываем нужную иконку в зависимости от темы */
html:not(.dark) .slider .sun-icon {
    opacity: 1;
}

html.dark .slider .moon-icon {
    opacity: 1;
}

/* Стили для баннера cookie */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937; /* gray-800 */
    color: #f9fafb; /* gray-50 */
    padding: 1rem;
    z-index: 1000;
    display: none; /* Скрыт по умолчанию */
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

html.dark .cookie-consent-banner {
    background-color: #374151; /* gray-700 */
}

.cookie-consent-banner.show {
    display: flex; /* Показывается с помощью JS */
    transform: translateY(0);
}

/* Стили для блока контактов */
.contacts-block {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb; /* gray-200 */
}

html.dark .contacts-block {
    border-top-color: #374151; /* gray-700 */
}

.contacts-block h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem; /* text-lg */
    font-weight: 500; /* medium */
    color: #4b5563; /* gray-600 */
}

html.dark .contacts-block h3 {
    color: #d1d5db; /* gray-300 */
}

.contacts-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* space-x-6 */
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
    color: #4f46e5; /* indigo-600 */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.contact-link:hover {
    color: #3730a3; /* indigo-800 */
}

html.dark .contact-link {
    color: #818cf8; /* indigo-400 */
}

html.dark .contact-link:hover {
    color: #a5b4fc; /* indigo-300 */
}

.contact-link svg {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
}
